<template>
  <div class="wrapper">
    <swiper :options="swiperOption">
      <swiper-slide v-for = "item of swiperList" :key="item.id">
        <img class="swipe-img" :src="item.imgUrl" />
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>
<script>
export default {
  name: 'homeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      },
      swiperList: [{
        id: '0001',
        imgUrl: 'http://img1.qunarzz.com/piao/fusion/1806/3c/c72a1ccd4d7b2202.jpg_750x200_b88bbab4.jpg'
      },
      {
        id: '0002',
        imgUrl: 'http://img1.qunarzz.com/piao/fusion/1807/f0/7671b5c6eab92202.jpg_750x200_ef45a6a5.jpg'
      }]
    }
  }
}
</script>
<style lang="stylus" scoped="scoped">
  .wrapper >>> .swiper-pagination-bullet-active
      background: white
  .wrapper
    overflow: hidden
    height: 0
    width: 100%
    padding-bottom: 27.25%
    background: #eee
    .swipe-img
      width: 100%
</style>
